package happywing.client.widget;

import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.FlowPanel;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.Image;
import com.google.gwt.user.client.ui.InlineHTML;
import com.google.gwt.user.client.ui.Label;

public class UserHead extends Composite {
	public UserHead(String imgName,String name){
		FlowPanel panel=new FlowPanel();
		UserFace face=new UserFace(imgName);
		panel.add(face);
		panel.add(new InlineHTML(name));
		panel.setStyleName("user-head");
		
		initWidget(panel);
	}
}
